package com.jack.userservice.openfeign;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

@Component
public class OrderServiceFallback implements OrderServiceFeignClient{
    @Override
    public String query(@RequestParam String param) {
        System.out.println("调用服务失败，mark一下");
        // 按理说应该：把对应业务处理逻辑发送到一个MQ上
        return "服务调用失败，降级处理...";
    }
}
